package er;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

public class NumberTen {
    public static void main(String[] args) {
        try(
                BufferedReader bufferedReader=new BufferedReader(new  FileReader("g:/file/itfeima.txt"))
                ) {
            String s =null ;
            while ((s=bufferedReader.readLine())!=null){
                String sb = s.replace("SB", "**");
                String tmd = sb.replace("TMD", "***");
                System.out.println(tmd);
            }
        }catch (IOException e){
            e.printStackTrace();
        }
    }
}
